export default {
  addZero(num,space = false){
    let result = num + ''
    if(num<10){
      result = "00" + num
    }else if(num < 100 && num >= 10){
      result = '0' +num
    }
    if(space){
      if(result[2] == 1){
        result = result.slice(0,2)+'  '+result.slice(2)
      }
      if(result[1] == 1){
        result = result.slice(0,1)+'  '+result.slice(1)
      }
      if(result[0] == 1){
        result = '  '+result
      }
    }
    return result;
  }
}